﻿namespace outputbirthday
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string year = Console.ReadLine();
            string month = Console.ReadLine();
            string day = Console.ReadLine();
            int YEAR = Convert.ToInt32(year);
            int MONTH = Convert.ToInt32(month);
            int DAY = Convert.ToInt32(day);


            DateTime birthday = new DateTime(YEAR, MONTH, DAY);
            DateTime today = DateTime.Now;
            TimeSpan ts = today - birthday;
            int days = ts.Days;
            Console.WriteLine(days);
        }
    }
}